package com.aos.erp.manager.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Auther: chb
 * @Date: 2018/11/11 18:42
 * @Description:
 */
public class TimeUtils {

    public static String start(Date data)
    {
        if(data==null)
        {
            return null;
        }
        SimpleDateFormat fmt1= new SimpleDateFormat("yyyy-MM-dd 00:00:00");
        return fmt1.format(data);
    }

   public static String edd(Date data)
   {
       if(data==null)
       {
           return null;
       }
       SimpleDateFormat fmt2= new SimpleDateFormat("yyyy-MM-dd 23:59:59");
       return fmt2.format(data);
   }


}
